import request from '@/utils/request'

// 查询有害生物日管控列表
export function listControl(query) {
  return request({
    url: '/process/pestControl/list',
    method: 'get',
    params: query
  })
}

// 查询有害生物日管控详细
export function getControl(id) {
  return request({
    url: '/process/pestControl/' + id,
    method: 'get'
  })
}

// 新增有害生物日管控
export function addControl(data) {
  return request({
    url: '/process/pestControl',
    method: 'post',
    data: data
  })
}

// 修改有害生物日管控
export function updateControl(data) {
  return request({
    url: '/process/pestControl',
    method: 'put',
    data: data
  })
}

// 删除有害生物日管控
export function delControl(id) {
  return request({
    url: '/process/pestControl/' + id,
    method: 'delete'
  })
}
